<%--
  Created by IntelliJ IDEA.
  User: nico
  Date: 01/10/12
  Time: 16:30
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:textfield label="Name" name="studystaff.name" id="name" value="%{studystaff.name}"  />
<s:textfield label="Role" name="studystaff.role" id="role" value="%{studystaff.role}"/>

<s:hidden  name="studystaff.cvEng" id="altcvEng" value="%{studystaff.cvEng}"/>
<s:textfield label="CV English" id="cvEng" cssClass="datepicker"/>

<s:hidden  name="studystaff.cvSpa" id="altcvSpa" value="%{studystaff.cvSpa}"/>
<s:textfield label="CV Spanish" id="cvSpa" cssClass="datepicker"/>

<s:hidden  name="studystaff.delegation" id="altdelegation" value="%{studystaff.delegation}"/>
<s:textfield label="Delegation (start date)" id="delegation" cssClass="datepicker"/>

<s:hidden  name="studystaff.finantialDisclosure" id="altfinantialDisclosure" value="%{studystaff.finantialDisclosure}"/>
<s:textfield label="Finantial Disclosure" id="finantialDisclosure" cssClass="datepicker"/>

<s:textfield label="TAO (password)" name="studystaff.taoPassword" id="taoPassword" value="%{studystaff.taoPassword}"/>

<s:hidden  name="studystaff.fechaFirmaAnmat" id="altfechaFirmaAnmat" value="%{studystaff.fechaFirmaAnmat}"/>
<s:textfield label="Fecha firma de la declaración jurada ANMAT?" id="fechaFirmaAnmat" cssClass="datepicker"/>

<s:select label="GCP Training" name="studystaff.gcp" id="gcp"  value="%{studystaff.gcp}"
          list="#{'YES':'YES', 'NO':'NO'}"/>
<s:checkbox label="Protocol specific training mandatory" value="%{studystaff.protocolSpecificTrainingMandatory}" name="studystaff.protocolSpecificTrainingMandatory" id="protocolSpecificTrainingMandatory" />
<s:textfield label="Protocol Training" name="studystaff.protocolTraining" id="protocolTraining" value="%{studystaff.protocolTraining}"/>

<s:hidden  name="studystaff.stopDate" id="altstopDate" value="%{studystaff.stopDate}"/>
<s:textfield label="Stop date (important to avoid tracking documents)" id="stopDate" cssClass="datepicker"/>

<s:textfield label="Sub-investigatodor listado en la DDJJ para Zieher" name="studystaff.subInvestigadorZieher" id="subInvestigadorZieher" value="%{studystaff.subInvestigadorZieher}"/>
<s:select label="Scope" name="studystaff.scope" id="scope"  value="%{studystaff.scope}"
          list="#{'1':'Site', '2':'Multi-site'}"/>

<tr>
    <td colspan="2" style="text-align: center">
        <s:submit value="Save" id="studystaffSave" action="studystaffSave" onclick="setEmptyDates();validate();beforeSave();" theme="simple" />
    </td>
</tr>
<s:if test="studystaff.id != null">
    <tr>
        <td colspan="2" style="text-align: center">
            <button id="studystaffClear" onclick="$('#category').change(); $('html, body').animate({ scrollTop:  $('#category').offset().top - 15 }); return false;">Clear</button>
        </td>
    </tr>
</s:if>
<s:hidden name="studystaff.id" value="%{studystaff.id}"/>
<script>
    inicializarTodaFecha();
</script>
<s:if test="studystaff.id != null">
    <script type="text/javascript">
        $('#scope').parent().parent().remove();
    </script>
</s:if>